namespace ProduceBasicData.Api.Services
{
    /// <summary>
    /// AI服务接口
    /// </summary>
    public interface IAIService
    {
        /// <summary>
        /// 发送聊天消息
        /// </summary>
        /// <param name="message">用户消息</param>
        /// <param name="context">上下文信息</param>
        /// <param name="model">AI模型</param>
        /// <returns>AI回复</returns>
        Task<string> SendMessageAsync(string message, string? context = null, string model = "gpt-3.5-turbo");

        /// <summary>
        /// 生成智能回复
        /// </summary>
        /// <param name="userMessage">用户消息</param>
        /// <param name="systemPrompt">系统提示词</param>
        /// <param name="model">AI模型</param>
        /// <returns>AI回复</returns>
        Task<string> GenerateReplyAsync(string userMessage, string? systemPrompt = null, string model = "gpt-3.5-turbo");

        /// <summary>
        /// 分析文本内容
        /// </summary>
        /// <param name="text">要分析的文本</param>
        /// <param name="analysisType">分析类型</param>
        /// <returns>分析结果</returns>
        Task<string> AnalyzeTextAsync(string text, string analysisType = "summary");
    }
}